/*
 *	The header implements the boolean data type for the C89 standard.
 *	Copyright (C) 1989-2089 Sergey Sergeevich Tsybanov All Rights Reserved
 *
 *	Temperature is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *
 *	Temperature is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License 
 *	along with the temperature program. 
 *	If not, see <https://www.gnu.org/licenses/>.
 */

#ifndef BOOLEAN_H
#define BOOLEAN_H

/*
 *	Boolean type definition.
 */
#ifndef bool
#define bool char
#endif

/*
 *	Boolean type value definitions.
 */
#ifndef false
#define false '\x00'
#endif

#ifndef true
#define true '\x01'
#endif

/*
 *	Macro converts a primitive type value into a boolean type value.
 */
#define BOOL( a) ( a != '\x00')

#endif